package com.demo.jvm.structure.constant;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * CONSTANT_String_info {
 * u1 tag;
 * u2 string_index;
 * }
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CONSTANT_String_info extends CONSTANT_info {
    private int stringIndex;

    public CONSTANT_String_info(byte tag, int tableIndex, int stringIndex) {
        super(tag, tableIndex);
        this.stringIndex = stringIndex;
    }
}
